package com.lucy.nepu.module.paper.lib.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "论文词典更新参数")
public class PaperDictUpdateParams {

    @NotBlank(message = "论文/成果词典ID不可为空")
    @ApiModelProperty(value = "论文/成果词典ID",name = "id")
    String id;

    @NotBlank(message = "分类编码不可为空")
    @ApiModelProperty("分类编码")
    String code;

    @NotBlank(message = "论文类型不可为空")
    @ApiModelProperty(value = "论文类型",notes = "标志性论文等..")
    String paperType;

    @NotBlank(message = "论文级别不可为空")
    @ApiModelProperty(value = "论文级别",notes = "A.B.C")
    String paperLevel;

    @DecimalMin(value = "0",message = "最小工作量大于0")
    @ApiModelProperty(value = "工作量Min",notes = "获奖对应的最小工作量")
    Double workloadMin;

    @DecimalMin(value = "0",message = "最大工作量大于0")
    @ApiModelProperty(value = "工作量Max",notes = "获奖对应的最大工作量")
    Double workloadMax;

    @ApiModelProperty(value = "论文词典备注")
    String remark;
}
